package com.flyox.game.fivetiger;

import com.flyox.game.fivetiger.control.FivetigerControl;
import com.flyox.game.fivetiger.model.Document;
import com.flyox.game.fivetiger.view.FivetigerJFrame;

/**
 * 程序入口
 * 
 * @author sunwei
 * 
 */
public class Start {
	public static void main(String[] args) {
		Document doc = new Document();
		FivetigerControl control = new FivetigerControl();
		FivetigerJFrame view = new FivetigerJFrame(control);

		control.setDoc(doc);
		control.setView(view);
		doc.addObserver(view);

		view.setLocationRelativeTo(null);
		view.setVisible(true);
	}
}
